package com.choosefine.it.project.service.Impl;

import com.choosefine.it.project.dao.ProjectManagerMapper;
import com.choosefine.it.project.model.ProjectManageInfo;
import com.choosefine.it.project.service.ProjectManageService;
import com.choosefine.it.team.model.TeamProjectManageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("projectManageService")
public class ProjectManageServiceImpl implements ProjectManageService {
	@Autowired
	ProjectManagerMapper projectManagerMapper;

	@Override
	public List<ProjectManageInfo> getListByManagerUsercode(String userCode) {
		return projectManagerMapper.getListByManagerUsercode(userCode);
	}

	@Override
	public List<ProjectManageInfo> getListByConstructUsercode(String usercode) {
		return projectManagerMapper.getListByConstructUsercode(usercode);
	}

	@Override
	public List<TeamProjectManageInfo> getListByTeamUsercode(String userCode) {
		return projectManagerMapper.getListByTeamUsercode(userCode);
	}

}
